﻿using MediatR;
using SqlSugar;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.Supplieries
{
    /// <summary>
    /// 修改供应商信息数据
    /// </summary>
    public class UpdateSupplierCommand : IRequest<Result>
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int SupplierId { get; set; }

        /// <summary>
        /// 供应商编码
        /// </summary>
        public string SupplierCoding { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SupplierName { get; set; }

        /// <summary>
        /// 供应商区分
        /// </summary>
        public string SupplierDiff { get; set; }

        /// <summary>
        /// 供应商电话
        /// </summary>
        public string SupplierPhone { get; set; }

        /// <summary>
        /// 供应商地址
        /// </summary>
        public string SupplierAddress { get; set; }

        /// <summary>
        /// 所在国家(外键)
        /// </summary>
        public int CountryId { get; set; }

        /// <summary>
        /// 所在城市(外键)
        /// </summary>
        public int CityId { get; set; }

        /// <summary>
        /// 供应商分类(外键)
        /// </summary>
        public int ClassificationId { get; set; }

        /// <summary>
        /// 供应商标签
        /// </summary>
        public string SupplierLabel { get; set; }

        /// <summary>
        /// 本公司标识 1-是 2-否
        /// </summary>
        public int CompanyLogo { get; set; }

        /// <summary>
        /// 委外标识 1-是 2-否
        /// </summary>
        public int Identification { get; set; }

        /// <summary>
        /// 是否有效 1-有效 2-无效
        /// </summary>
        public int SupplierStatus { get; set; }

        /// <summary>
        /// 是否删除 1-未删除 2-已删除
        /// </summary>
        public int IsSupplier { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedOwner { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExamineOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
    }
}
